
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <meta name="layout" content="main" />
        <title>List of participants</title>
    </head>
    <body>
        <div class="undernav">
          <%
          def a = session.access
          a.refresh()
          %>
        </div>
        <div class="body" style="width:98%">
            <h1>Course: </h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <div class="list">
                <table style="table-layout: fixed">
                    <thead>
                        <tr>
                   	        <th>${Inter.printOut('Name',session.language)}</th>
                        </tr>
                    </thead>
                    <tbody>
                    <g:each in="${scheduleInstance.allParticipants()}" status="i" var="e">
                        <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
                            <td>${e?.firstName} ${e?.lastName}</td>
                        </tr>
                    </g:each>
                    </tbody>
                </table>
            </div>
            <div class="paginateButtons">
                <g:paginate total="${scheduleInstance.allParticipants().size()}" />
            </div>
        </div>

    </body>
</html>
